package com.zczr.sms.service.NewSchoolService.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zczr.sms.mapper.NewSchoolMapper.NewSchoolMapper;
import com.zczr.sms.pojo.ProfessionClassify;
import com.zczr.sms.pojo.Schools;
import com.zczr.sms.pojo.User;
import com.zczr.sms.pojo.examinationScore;
import com.zczr.sms.service.NewSchoolService.NewSchoolService;

@Service
public class NewSchoolServiceImpl implements NewSchoolService {

	@Autowired
	private NewSchoolMapper mapper;

	public boolean adduser(User users) {

		return mapper.adduser(users);
	}

	public List<Schools> findSchool1(int score, int property,String[] arr) {
		return mapper.findSchool1(score, property,arr);
	}
	public List<Schools> findSchool2(int score, int property,String[] arr) {
		return mapper.findSchool2(score, property,arr);
	}
	public List<Schools> findSchool3(int score, int property,String[] arr) {
		return mapper.findSchool3(score, property,arr);
	}

	public List<Schools> findSchoolName() {
		return mapper.findSchoolName();
	}

	public List<Map<String, Object>> findZyName(Schools schools, String[] cCode)
			throws Exception {

		return mapper.findZyName(schools,cCode);
	}
	public List<Map<String, Object>> company_findZyName(Schools schools, String[] cCode)
			throws Exception {

		return mapper.company_findZyName(schools,cCode);
	}

	public User findUserByPhoneonAndPassword(User users) throws Exception {
		return mapper.findUserByPhoneonAndPassword(users);
	}

	public List<Map<String, Object>> findMajor(String proname) throws Exception {
		return mapper.findMajor(proname);
	}

	public List<ProfessionClassify> ProName() throws Exception {
		return mapper.ProName();
	}

	public examinationScore findScore() {

		return mapper.findScore();
	}

	public List<Schools> company_findSchool1(int score, int property,
			String[] arr) {
		return mapper.company_findSchool1(score, property,arr);
	}

	public List<Schools> company_findSchool2(int score, int property,
			String[] arr) {
		return mapper.company_findSchool2(score, property,arr);
	}

	public List<Schools> company_findSchool3(int score, int property,
			String[] arr) {
		return mapper.company_findSchool3(score, property,arr);
	}

	public List<Schools> zk_findSchool1(int score, int property, String[] arr) {

		return mapper.zk_findSchool1(score, property, arr);
	}

	public List<Schools> zk_findSchool2(int score, int property, String[] arr) {
		return mapper.zk_findSchool2(score, property, arr);
	}

	public List<Schools> zk_findSchool3(int score, int property, String[] arr) {
		return mapper.zk_findSchool3(score, property, arr);
	}

}
